﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Data;

namespace DocumentManagement.Converters
{
   public class TextSpeedPrintConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            string textSpeed = (string)value.ToString();
            if (textSpeed != null)
            {
                switch (textSpeed)
                {
                    case "1":
                        return "";

                    case "2":
                        return "ด่วน";

                    case "3":
                        return "ด่วนมาก";

                    case "4":
                        return "ด่วนที่สุด";

                    default:
                        return "";

                }
            }
            else
            {
                return "";
            }

    
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
           throw new NotImplementedException();
        }
    }
}
